//
//  AXHomeNcpscFourthCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/22.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXHomeNcpscFourthCell.h"

@implementation AXHomeNcpscFourthCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    self.xsyhImgView = [[UIImageView alloc]init];
    self.xsyhImgView.userInteractionEnabled = YES;
    self.xsyhImgView.contentMode =UIViewContentModeScaleAspectFill;
    self.xsyhImgView.clipsToBounds=YES;//
    self.xsyhImgView.image = [UIImage imageNamed:@"xsyh"];
    [self.contentView addSubview:self.xsyhImgView  ];
    
    UITapGestureRecognizer *leftTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(leftTap:)];
    [self.xsyhImgView addGestureRecognizer:leftTap];
}

- (void)setlayout {
    self.xsyhImgView.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .widthIs(SCREEN_WIDTH-20)
    .heightIs(93);
    
}



- (void)leftTap:(UITapGestureRecognizer *)tap {
    
    if (self.tapButtonClickedBlock) {
        
        self.tapButtonClickedBlock(tap.view.tag);
    }
}

@end
